/**
 * 
 */
package org.bean.spiral.annotations;


import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;


/**
 * @author saiyez
 * 
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface OneToMany {

  public static final String CONSTRUCTOR = "constructor";

  Class<?> parent() default Root.class;

  String parentCollection();

  Class<?> mappedClass();

  String mappedBy();

  // Values "constructor" or name of the method
  String copyParentBy() default "";
}
